Adjunction for Garbage Collection with Application to Graph Rewriting
نویسندگان
چکیده
We investigate garbage collection of unreachable parts of rooted graphs from a categorical point of view. First, we define this task as the right adjoint of an inclusion functor. We also show that garbage collection may be stated via a left adjoint, hence preserving colimits, followed by two right adjoints. These three adjoints cope well with the different phases of a traditional garbage collector. Consequently, our results should naturally help to better formulate graph transformation steps in order to get rid of garbage (unwanted nodes). We illustrate this point on a particular class of graph rewriting systems based on a double pushout approach and featuring edge redirection. Our approach gives a neat rewriting step akin to the one on terms, where garbage never appears in the reduced term.
منابع مشابه
Concurrent Garbage Collection for Concurrent Rewriting
We describe an algorithm that achieves garbage collection when performing concurrent rewriting. We show how this algorithm follows the implementation model of concurrent graph rewriting. This model has been studied and directly implemented on MIMD machines where nodes of the graph are distributed over a set of processors. A distinguishing feature of our algorithm is that it collects garbage con...
متن کاملExplicit Alpha Conversion and Garbage Collection in X Extended
In this paper we study the calculus of circuits X , as first presented in [13] and studied in detail in [2]. We will present improvements on the implementation for X using term graph rewriting techniques that was presented in [3], which result in a far more efficient running of the reduction engine. We show that alpha conversion can be dealt with ‘on the fly’, by implementing the avoidance of c...
متن کاملAn optimised term graph rewriting engine for X
This paper studies the calculus X , that has its foundation in Classical Logic; we present an implementation for X using term graph rewriting techniques, and discuss improvements thereof which result in an increasingly more efficient running of the reduction engine. We show that name capture can be dealt with ‘on the fly’, by realising the avoidance of capture through adding or modifying the re...
متن کاملRewriting on cyclic structures ?
We present a categorical formulation of the rewriting of possibly cyclic term graphs, and the proof that this presentation is equivalent to the well-accepted operational deenition proposed in 3]|but for the case of circular redexes, for which we propose (and justify formally) a diierent treatment. The categorical framework, based on suitable 2-categories, allows to model also automatic garbage ...
متن کاملCommunication Issues regarding Parallel Functional Graph Rewriting
Efficient communication is the basis of an implementation of a parallel language on a distributed machine architecture. This article handles about the communication mechanism that is needed to support parallel graph rewriting in Concurrent Clean. The danger of deadlock is imminent at several levels of such a system. Communication problems and their solutions are closely related to memory manage...
متن کامل